class LocalCache {
  // 添加
  set(key: string, value: any) {
    window.localStorage.setItem(key, value);
  }
  // 查找
  get(key: string) {
    return window.localStorage.getItem(key);
  }
  // 删除
  delete(key: string) {
    window.localStorage.removeItem(key);
  }
  // 清理
  clear() {
    window.localStorage.clear();
  }
}

export default new LocalCache();
